<!DOCTYPE html>
<html>
<head>
   @include("/include/_header.html", {'title':'文件任务管理'}){}
</head>
<body>


  <div class="layui-form" lay-filter="layuiadmin-app-form-list" id="layuiadmin-app-form-list" style="padding: 20px 30px 0 0;">
  	<input type="hidden" name="id" value="${config.id!}">
  	<div class="layui-form-item">
      <label class="layui-form-label">序号</label>
      <div class="layui-input-inline">
        <input type="text" name="indexCode" lay-verify="required" placeholder="请输入序号" autocomplete="off" class="layui-input" value="${config.indexCode!}">
      </div>
    </div>
  	<div class="layui-form-item">
      <label class="layui-form-label">编号</label>
      <div class="layui-input-inline">
      @if(isNotEmpty(disabled) && "disabled" == disabled){
        <input type="text"  name="code" lay-verify="required" placeholder="请输入编号" autocomplete="off" class="layui-input" value="${config.code!}"  disabled="disabled">
      @}else {
      	<input type="text"  name="code" lay-verify="required" placeholder="请输入编号" autocomplete="off" class="layui-input" value="${config.code!}" >
     	@}
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">名称</label>
      <div class="layui-input-inline">
        <input type="text" name="name" lay-verify="required" placeholder="请输入名称" autocomplete="off" class="layui-input" value="${config.name!}">
      </div>
    </div>
    <div class="layui-form-item">
    	<div class="layui-row">
    		<div class="layui-col-xs8">
    			<label class="layui-form-label">文件流水</label>
			      <div class="layui-input-block">
			        <input type="text" name="lineCode" id="lineCode" placeholder="请选择文件流水" autocomplete="off" class="layui-input" value="${config.lineCode!}"  readonly>
			        <input type="hidden" name="lineId" id="lineId" value=${config.lineId!}>
			      </div>
    		</div>
    		<div class="layui-col-xs4">
				<button class="layui-btn layui-btn-sm" style="margin-top: 5px;" id="selLine">请选择</button>
			</div>
			 @include("/component/_select_line.html", {'domId':'selLine', 'inputName':'lineCode', 'inputId':'lineId'}){}
    	</div>	
    </div>
    <div class="layui-form-item">
    	<div class="layui-row">
    		<div class="layui-col-xs8">
    			<label class="layui-form-label">文件交互</label>
			      <div class="layui-input-block">
			        <input type="text" name="interactiveCode" id="interactiveCode" placeholder="请选择文件交互" autocomplete="off" class="layui-input" value="${config.interactiveCode!}" readonly>
			        <input type="hidden" name="interactiveId" id="interactiveId" value=${config.interactiveId!}>
			      </div>
    		</div>
    		<div class="layui-col-xs4">
				<button class="layui-btn layui-btn-sm" style="margin-top: 5px;" id="selInteractive">请选择</button>
			</div>
			 @include("/component/_select_interactive.html", {'domId':'selInteractive', 'inputName':'interactiveCode', 'inputId':'interactiveId'}){}
    	</div>	
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">状态</label>
        <div class="layui-input-inline">
        	@if(isNotEmpty(config.status) && "0" == config.status){
        		<input type="checkbox" name="status" lay-skin="switch" lay-filter="status-switch" lay-text="正常|禁用">
        	@}else {
        		<input type="checkbox" checked="checked" name="status" lay-skin="switch" lay-filter="status-switch" lay-text="正常|禁用">
        	@}
        </div>
    </div>
    
    <div class="layui-form-item">
      <label class="layui-form-label">备注</label>
      <div class="layui-input-inline">
        <textarea name="remark" style="width: 400px; height: 100px;" autocomplete="off" class="layui-textarea">${config.remark!}</textarea>
      </div>
    </div>
    
	<div class="layui-form-item layui-hide">
      <input type="button" lay-submit lay-filter="form-btn-save" id="form-btn-save" value="保存">
      <input type="button" lay-submit lay-filter="form-btn-cancel" id="form-btn-cancel" value="取消">
    </div>
  </div>
 
 
  @include("/include/_container.html", {'js':'/assets/filesys/filetask/filetask.js'}){}
</body>
</html>